﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RegulatoryPlatform.Models
{
    /// <summary>
    /// 研发接口 电子处方明细
    /// </summary>
    public class PrescriptionResponse
    {
        /// <summary>
        /// 业务ID
        /// </summary>
        public string b_id { get; set; }

        /// <summary>
        /// 医生ID
        /// </summary>
        public string doctorId { get; set; }

        /// <summary>
        /// 医生外部id
        /// </summary>
        public string doctorOutId { get; set; }

        /// <summary>
        /// 医生名称
        /// </summary>
        public string doctorName { get; set; }

        /// <summary>
        /// 处方号
        /// </summary>
        public string cyh { get; set; }

        /// <summary>
        /// 复诊流水号
        /// </summary>
        public string fzlsh { get; set; }

        /// <summary>
        /// 撤销标志
        /// </summary>
        public string cxbz { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        public string kh { get; set; }

        /// <summary>
        /// 证件号码
        /// </summary>
        public string zjhm { get; set; }

        /// <summary>
        /// 处方类型
        /// </summary>
        public string cflx { get; set; }

        /// <summary>
        /// 收费标准
        /// </summary>
        public string sfbz { get; set; }

        /// <summary>
        /// 处方开具签名值
        /// </summary>
        public string cfkjqmz { get; set; }

        /// <summary>
        /// 药师姓名
        /// </summary>
        public string ysxm { get; set; }

        /// <summary>
        /// 修改标志
        /// </summary>
        public string xgbz { get; set; }

        /// <summary>
        /// 总金额
        /// </summary>
        public string totalAmount { get; set; }

        /// <summary>
        /// 处方详情 (多条)
        /// </summary>
        public IList<prDetail> detail { get; set; }
    }

    /// <summary>
    /// 处方详情
    /// </summary>
    public class prDetail
    {

        /// <summary>
        /// 处方ID
        /// </summary>
        public string cyh { get; set; }

        /// <summary>
        /// 处方明细号
        /// </summary>
        public string cfmxh { get; set; }

        /// <summary>
        /// 项目标准代码
        /// </summary>
        public string xmbmyb { get; set; }

        /// <summary>
        /// 剂型代码
        /// </summary>
        public string jxdm { get; set; }

        /// <summary>
        /// 用药途径代码
        /// </summary>
        public string yf { get; set; }

        /// <summary>
        /// 用药天数
        /// </summary>
        public int yyts { get; set; }

        /// <summary>
        /// 药品数量
        /// </summary>
        public int ypsl { get; set; }

        /// <summary>
        /// 药品单位
        /// </summary>
        public string ypdw { get; set; }

        /// <summary>
        /// 使用频次代码
        /// </summary>
        public string sypcdm { get; set; }

        /// <summary>
        /// 使用剂量
        /// </summary>
        public int jl { get; set; }

        /// <summary>
        /// 使用剂量单位
        /// </summary>
        public string dw { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int cnt { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal price { get; set; }

        /// <summary>
        /// 中药煎煮法代码
        /// </summary>
        public string jydm { get; set; }

        /// <summary>
        /// 修改标志
        /// </summary>
        public string xgbz { get; set; }
    }
}
